package com.zmn.oms.services.interfaces.review;

import com.zmn.oms.model.entity.review.OmsOrderReview;
import com.zmn.oms.model.entity.review.OrderReviewDbQuery;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

import java.util.List;

/**
 * @ClassName OmsOrderReviewService
 * @description:
 * @author: wangyanci
 * @create: 2021-08-06 17:15
 * @Version 1.0
 **/
public interface OmsOrderReviewService {

    OmsOrderReview getOmsOrderReviewById(@NonNull Long reviewId, @NonNull Long orderId);

    OmsOrderReview getOmsOrderReviewByOrderIdAndWorkIdAndType(@NonNull Long orderId, @NonNull Long workId, @NonNull Integer reviewType);

    OmsOrderReview getOmsOrderReviewByQuery(OrderReviewDbQuery query);

    int insertOmsOrderReview(OmsOrderReview omsOrderReview);

    int updateById(OmsOrderReview omsOrderReview);

    List<OmsOrderReview> getOmsOrderReviewByOrderIdsAndType(List<Long> orderIds, int omsOrderReviewRefund);

    List<OmsOrderReview> listOrderReviewByOrderIdList(List<Long> orderIdList);

    void deleteById(OmsOrderReview deleteOrderReview);
}
